<template>
  <div>
    <nut-navbar @click-back="onClick" fixed>
      <template #left>
        <div>
          <Horizontal color="red" />
        </div>
      </template>
      <template #content>
        <nut-space :gutter="30">
          <div><a href="">关注</a></div>
          <div><a href="">发现</a></div>
          <div><a href="">同城</a></div>
        </nut-space>
      </template>
      <template #right>
        <div>
          <Search></Search>
        </div>
      </template>
    </nut-navbar>
  </div>
  <div>
    <nut-row :gutter="10">
      <nut-col :span="12">
        <div class="content">
          <div>
            <nut-image :src="url" width="174.6"  />
          </div>
          <div>
            conmemt
          </div>
          <div>
            <span>user</span>
            <span>点赞</span>
          </div>
        </div>
      </nut-col>
      <nut-col :span="12">
        <div class="content">
          <div>
            <nut-image :src="url" width="174.6"  />
          </div>
          <div>
            conmemt
          </div>
          <div>
            <span>user</span>
            <span>点赞</span>
          </div>
        </div>
      </nut-col>
    </nut-row>
    <nut-row :gutter="10">
      <nut-col :span="12">
        <div class="content">
          <div>
            <nut-image :src="url" width="174.6"  />
          </div>
          <div>
            conmemt
          </div>
          <div>
            <span>user</span>
            <span>点赞</span>
          </div>
        </div>
      </nut-col>
      <nut-col :span="12">
        <div class="content">
          <div>
            <nut-image :src="url" width="174.6"  />
          </div>
          <div>
            conmemt
          </div>
          <div>
            <span>user</span>
            <span>点赞</span>
          </div>
        </div>
      </nut-col>
    </nut-row>
  </div>
</template>

<script setup>
import { Horizontal, Search } from '@nutui/icons-vue'
const onClick = () => {
  console.log('[Navbar]: on click back')
}
const url = 'https://img10.360buyimg.com/ling/jfs/t1/181258/24/10385/53029/60d04978Ef21f2d42/92baeb21f907cd24.jpg'
</script>

<style>
.content {
  line-height: 40px;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  background: #ff8881;
  margin-bottom: 10px;
}

.light {
  background: #ffc7c4;
}
</style>